
from . import app
from flask_restful import reqparse, Api, Resource

api = Api(app)

parser = reqparse.RequestParser()
parser.add_argument('task')


class Message(Resource):
    def get(self):
        return {'message': 'Hello, Flask'}

# 下面URL要与next.config.ts中一致
api.add_resource(Message, '/api/hello')
